package com.ten.stat.service.impl;

import com.ten.common.core.vo.Result;
import com.ten.stat.dao.EduCourseDao;
import com.ten.stat.service.EduCourseService;
import com.ten.stat.vo.EduCourseVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author ：王薪伟
 * @date ：Created in 2022/12/13 17:47
 * @description：
 * @modified By：
 * @version:
 */
@Service
public class EduCourseServiceImpl implements EduCourseService {

    @Autowired
    private EduCourseDao courseDao;

    @Override
    public Result<List<EduCourseVo>> findCount() {
        List<EduCourseVo> list = courseDao.selectCount();
        return new Result<>(2000,"查询成功",list);
    }
}
